import request from '@/utils/axiosRequest.js'

// VIEW

export function getAllTaskDetails(){
  return request({
    url: "/system/taskDetail/list",
    method: "get"
  })
}

// 添加
export function addTaskDetail(taskDetail) {
  return request({
    url: "/system/taskDetail",
    method: "post",
    data: taskDetail
  })
}

// 更新
export function updateTaskDetail(taskDetail) {
  return request({
    url: "/system/taskDetail",
    method: "put",
    data: taskDetail
  })
}

// 批量删除
export function deleteTaskDetails(taskDetailIdList) {
  return request({
    url: "/system/taskDetail/batch",
    method: "delete",
    data: taskDetailIdList
  })
}
